import { reactive } from 'vue'

export default function () {
  let rules: any = reactive({
    username: [
      { required: true, message: '请输入用户名', trigger: 'blur' },
      { min: 3, max: 16, message: '输入3-16位', trigger: 'blur' },
    ],
    password: [
      { required: true, message: '请输入密码', trigger: 'blur' },
      { min: 3, max: 16, message: '输入3-16位', trigger: 'blur' },
    ],
    name: [
      { required: true, message: '输入昵称', trigger: 'blur' },
      { min: 3, max: 16, message: '输入3-16位', trigger: 'blur' },
    ],
  })
  return {
    rules,
  }
}
